﻿using HPMTool.LeftNavigation.Views;
using HPMTool.LeftNavigation.ViewModels;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;


namespace HPMTool.LeftNavigation
{
    public class LeftNavigationModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public LeftNavigationModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }


        public void OnInitialized(IContainerProvider containerProvider)
        {
            //将LeftNavigationView 显示到主界面
            _regionManager.RegisterViewWithRegion("MainWindow.LeftRegion", typeof(LeftNavigationView));



        }


        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            // Register navigation
            // containerRegistry.RegisterForNavigation<LeftNavigationView>();

            // Register navigation
            // containerRegistry.RegisterForNavigation<BOM1View>();
            // containerRegistry.RegisterForNavigation<BOM2View>();
            // containerRegistry.RegisterForNavigation<BOMDiffView>();

            // Register dialog
            // containerRegistry.RegisterDialog<ShowResultView, ShowResultViewModel>("ShowResultDialog");
        }







    }
}